package com.gsy.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import com.gsy.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author gsy
 * @since 2022-03-03
 */

@TableName("tb_user")
@ApiModel(value="UserEntity对象", description="")
public class UserEntity extends BaseEntity {

    @TableId(type = IdType.AUTO)
    protected Integer id;

    private String token;

    private Long studentNumber;

    private String name;

    @ApiModelProperty(name = "用户", value = "用户", dataType = "String", example = "用户")
    private String username;

    @ApiModelProperty(name = "密码", value = "密码", dataType = "String", example = "密码")
    private String password;

    @ApiModelProperty(name = "头像", value = "头像", dataType = "String", example = "头像")
    private String head;

    @ApiModelProperty(name = "邮箱", value = "邮箱", dataType = "String", example = "邮箱")
    private String mailbox;

    @ApiModelProperty(name = "地址", value = "地址", dataType = "String", example = "地址")
    private String address;

    @ApiModelProperty(name = "性别", value = "性别", dataType = "String", example = "性别")
    private String sex;

    @ApiModelProperty(name = "最近一次修改时间", value = "最近一次修改时间", dataType = "Date", example = "最近一次修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifytime;

    @ApiModelProperty(name = "存入时间", value = "存入时间", dataType = "Date", example = "存入时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createtime;

    @ApiModelProperty(name = "所属班级", value = "所属班级", dataType = "String", example = "所属班级")
    private String classes;

    private Integer type;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getStudentNumber() {
        return studentNumber;
    }

    public void setStudentNumber(Long studentNumber) {
        this.studentNumber = studentNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getMailbox() {
        return mailbox;
    }

    public void setMailbox(String mailbox) {
        this.mailbox = mailbox;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getModifytime() {
        return modifytime;
    }

    public void setModifytime(Date modifytime) {
        this.modifytime = modifytime;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getClasses() {
        return classes;
    }

    public void setClasses(String classes) {
        this.classes = classes;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
